﻿/**
* File: XmjcqdxxAddModel.cs
* Author: 汪杰
* Create Time:2025/5/16 9:19:30
* Email:15200358008@139.com
* 代码由TMCodeGenerator自动生成
**/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using JSLCloud.Models;
using JSLCloud.Attributes;
using JSLCloud.DBModel;

namespace JSLCloud.App.Models.Xmjcqdxx
{
    /// <summary>
    /// xm_jc_qdxx Add Model
    /// </summary>
    [UseAutoMapper(typeof(XmjcqdxxDbModel))]
    public class XmjcqdxxAddModel
    {
        /// <summary>
        /// ID
        /// </summary>
        [Required]
        public new int ID { get; set; }
        /// <summary>
        /// 创建人ID
        /// </summary>
        public int? Createid { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Createname { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? Createtime { get; set; }
        /// <summary>
        /// 删除标识 0未删除 1已删除
        /// </summary>
        [Required]
        public int Deleteflag { get; set; }
        /// <summary>
        /// 渠道编码
        /// </summary>
        [Required]
        [StringLength(maximumLength:50)]
        public string Qdbm { get; set; }
        /// <summary>
        /// 渠道名称
        /// </summary>
        [Required]
        [StringLength(maximumLength:200)]
        public string Qdmc { get; set; }
        /// <summary>
        /// 渠道简称
        /// </summary>
        [StringLength(maximumLength:20)]
        public string Qdjc { get; set; }
        /// <summary>
        /// 开业日期
        /// </summary>
        public DateTime? Kyrq { get; set; }
        /// <summary>
        /// 注册资金
        /// </summary>
        [RegularExpression(pattern: "^(-)?\\d{1,16}(\\.\\d{1,2})?$", ErrorMessage = "整数位须小于等于16位，小数位须小于等于2位")]
        public decimal? Zczj { get; set; }
        /// <summary>
        /// 员工人数
        /// </summary>
        public int? Ygrs { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [StringLength(maximumLength:20)]
        public string Lxr { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Lxdh { get; set; }
        /// <summary>
        /// 公司地址
        /// </summary>
        [StringLength(maximumLength:200)]
        public string Gsdz { get; set; }
        /// <summary>
        /// 收货地址
        /// </summary>
        [StringLength(maximumLength:200)]
        public string Shdz { get; set; }
        /// <summary>
        /// 渠道来源
        /// </summary>
        [StringLength(maximumLength:30)]
        public string Khly { get; set; }
        /// <summary>
        /// 联系邮箱
        /// </summary>
        [StringLength(maximumLength:50)]
        public string Lxyx { get; set; }
        /// <summary>
        /// 渠道状态 Y有效 N失效
        /// </summary>
        [Required]
        [StringLength(maximumLength:1)]
        public string Qdzt { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(maximumLength:500)]
        public string Bz { get; set; }        
                
    }
}
